package com.shop.shard.mapper.user;

import com.shop.shard.entity.user.UserAddress;
import com.shop.shard.vo.user.UserAddressVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
/**
 * @Description: 代码生成器自动生成
 * @author:
 * @Createed Date: 2019-8-16 10:06:56
 * @ModificationHistory: Who  When  What
 * ---------     -------------   --------------------------------------
 **/
@Repository
public interface UserAddressMapper extends BaseMapper<UserAddress>{

    /**
    * select UserAddress by id
    * @param id
    * @return
    */
    UserAddressVO selectDetailById(@Param("id")int id) ;

    /**
    * selectOwnPage
    * @param page
    * @param param
    * @return
    */
    IPage<UserAddressVO> selectOwnPage(Page page, @Param("param") Map<String,Object> param);

    /**
     * selectDetailByUserId
     * @param id
     * @return
     */
    UserAddressVO selectDetailByUserId(@Param("id") Integer id);
}